import request from '@/utils/request'

// 获取统计数据
export function getStatistics() {
  return request({
    url: '/statistics',
    method: 'get'
  })
}

// 获取学生总数
export function getStudentCount() {
  return request({
    url: '/student/count',
    method: 'get'
  })
}

// 获取教师总数
export function getTeacherCount() {
  return request({
    url: '/teacher/count',
    method: 'get'
  })
}

// 获取课程总数
export function getCourseCount() {
  return request({
    url: '/course/count',
    method: 'get'
  })
}

// 获取选课总数
export function getEnrollmentCount() {
  return request({
    url: '/enrollment/count',
    method: 'get'
  })
}
